package com.lee.game.logic.media;

import android.media.AudioManager;

public class VolumeControl
{
	private int level;

	public AudioManager manager;

	public int getLevel()
	{
		return this.level;
	}

	public void setLevel(int level)
	{
		if (level < this.getLevel())
			this.manager.adjustVolume(AudioManager.ADJUST_LOWER, 1);
		else if (level > this.getLevel())
			this.manager.adjustVolume(AudioManager.ADJUST_RAISE, 1);
		else
			this.manager.adjustVolume(AudioManager.ADJUST_SAME, 1);
		this.level = level;
	}
}
